from lxml import etree

parser = etree.HTMLParser(encoding="utf-8")
result =etree.parse("baidu.html",parser=parser)
print(result)
li_list=result.xpath('//input[@id="su"]/@value')

print(li_list)

print(type(li_list))

for item in li_list:
    print(f"{item}")

